Endpoint Update [Dynamic Endpoint]
Name
put_[dynamic_endpoint_name]
Description
Related Tables
Parameters
| Parameter | Required | Options |
|---|---|---|
|
Name:
Label: Triggers |
Output Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
|---|---|---|---|---|
| id |
DT_WSTR
|
nvarchar(255)
|
255 | |
| code |
DT_WSTR
|
nvarchar(255)
|
255 | |
| message |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
| status |
DT_WSTR
|
nvarchar(255)
|
255 | |
| expected_data_type |
DT_WSTR
|
nvarchar(255)
|
255 | |
| api_name |
DT_WSTR
|
nvarchar(255)
|
255 | |
| created_time |
DT_DBTIMESTAMP
|
datetime
|
||
| modified_time |
DT_DBTIMESTAMP
|
datetime
|
||
| modified_by_name |
DT_WSTR
|
nvarchar(255)
|
255 | |
| modified_by_id |
DT_WSTR
|
nvarchar(255)
|
255 | |
| created_by_name |
DT_WSTR
|
nvarchar(255)
|
255 | |
| created_by_id |
DT_WSTR
|
nvarchar(255)
|
255 |
Input Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
|---|---|---|---|---|
| id |
DT_WSTR
|
nvarchar(25)
|
25 | |
| -Dynamic- |
DT_WSTR
|
nvarchar(4000)
|
4000 |
Examples
SSIS
Use Zoho CRM Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Destination
This Endpoint belongs to the [Dynamic Table] table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to update [dynamic endpoint]:
| Optional Parameters | |
|---|---|
| Triggers | "approval","workflow","blueprint" |
ODBC application
Use these SQL queries in your ODBC application data source:
Update record owner
<p>Updates the owner of a record (e.g., Account, Contact, Deal, Lead). This example shows how to update a lookup field like <code>Owner</code> using a unique identifier such as email or ID. In this case, the owner of a specific Account is updated by email.</p>
UPDATE Accounts
SET Owner='{email: "bob-the-salesman@abc.com"}'
--SET Owner='{id: "1558554000186378001"}' --you can also use Id
Where Id='1558554000137221573'
Update deal account or contact
<p>Updates the Account and Contact lookup fields for a Deal record. This example demonstrates setting the <code>Account_Name</code> by name and <code>Contact_Name</code> by ID for a specific Deal.</p>
UPDATE Deals
SET Account_Name='{"name": "Company ABCD"}', --by name or id
Contact_Name='{"id": "1558554000186378001"}' --by id
Where Id='1558554000137221573'
Update a lead
<p>Updates a specific Lead record. This example demonstrates modifying fields like <code>Designation</code> and <code>Company</code> for a Lead identified by its ID in the <code>WHERE</code> clause.</p>
Update Leads SET Designation='VP Sales', Company='Test' Where id=1558554000012181009
Update a lead (legacy)
<p>Updates a specific Lead record using an alternative syntax. This example demonstrates passing the <code>id</code> as a column in the <code>SET</code> clause instead of using a <code>WHERE</code> clause.</p>
Update Leads SET id='1558554000012181009' /* id must be supplied */, Designation='VP Sales', Company='Test'
put_[dynamic_endpoint_name] endpoint belongs to
[Dynamic Table]
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Update record owner
<p>Updates the owner of a record (e.g., Account, Contact, Deal, Lead). This example shows how to update a lookup field like <code>Owner</code> using a unique identifier such as email or ID. In this case, the owner of a specific Account is updated by email.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'UPDATE Accounts
SET Owner=''{email: "bob-the-salesman@abc.com"}''
--SET Owner=''{id: "1558554000186378001"}'' --you can also use Id
Where Id=''1558554000137221573''';
EXEC (@MyQuery) AT [LS_TO_ZOHO_CRM_IN_GATEWAY];
Update deal account or contact
<p>Updates the Account and Contact lookup fields for a Deal record. This example demonstrates setting the <code>Account_Name</code> by name and <code>Contact_Name</code> by ID for a specific Deal.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'UPDATE Deals
SET Account_Name=''{"name": "Company ABCD"}'', --by name or id
Contact_Name=''{"id": "1558554000186378001"}'' --by id
Where Id=''1558554000137221573''';
EXEC (@MyQuery) AT [LS_TO_ZOHO_CRM_IN_GATEWAY];
Update a lead
<p>Updates a specific Lead record. This example demonstrates modifying fields like <code>Designation</code> and <code>Company</code> for a Lead identified by its ID in the <code>WHERE</code> clause.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'Update Leads SET Designation=''VP Sales'', Company=''Test'' Where id=1558554000012181009';
EXEC (@MyQuery) AT [LS_TO_ZOHO_CRM_IN_GATEWAY];
Update a lead (legacy)
<p>Updates a specific Lead record using an alternative syntax. This example demonstrates passing the <code>id</code> as a column in the <code>SET</code> clause instead of using a <code>WHERE</code> clause.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'Update Leads SET id=''1558554000012181009'' /* id must be supplied */, Designation=''VP Sales'', Company=''Test''';
EXEC (@MyQuery) AT [LS_TO_ZOHO_CRM_IN_GATEWAY];
put_[dynamic_endpoint_name] endpoint belongs to
[Dynamic Table]
table(s), and can therefore be used via those table(s).